
function page_nav(brForm,currentPageNo) {
    brForm.currentPageNo.value=currentPageNo;
    brForm.submit();//直接用form提交
}

function jump_to(brForm,jumpPageNo) {
    var regx = /^\d{1,}$/;
    if(!regx.test(jumpPageNo)){//非数字
        layer.msg("请输入数字!");
        return;
    }
    var totalPageCount = document.getElementById("totalPageCount").value;
    if(jumpPageNo <= 0 || jumpPageNo > totalPageCount){//在首页和最后一页之间
        layer.msg("请输入正确的页码!");
        return;
    }
    brForm.currentPageNo.value=jumpPageNo;
    brForm.submit();//直接用form提交
}